<template>
    <div style="width: 100%;">
      <headbar />
      <leftbar />
      <AddModel />
    </div>
  </template>
  
  
  
  
  
  
  <script setup>
  import leftbar from "@/components/leftbar.vue";
  import headbar from "@/components/headbar.vue";
  import AddModel from "@/views/AddModel.vue";
  </script>
  
  
  
  
  
  
  
  <style scoped>
  .headbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    width: 100%;
    position: fixed; /* 固定定位 */
    top: 0; /* 距离顶部0 */
    left: 0; /* 距离左侧0 */
    z-index: 1000; /* 确保在最上层 */
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 40px;
    margin-right: 10px;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    width: 70%;
    right: 0;
    padding: 0; /* 去除默认的padding */
    margin: 0; /* 去除默认的margin */
  }
  
  .nav-links li {
    flex: 1; /* 每个li元素占据相等的空间 */
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
  }
  
  .nav-links a:hover {
    text-decoration: underline;
  }
  
  .leftbar{
    display: flex;
    width: 10%;
    height: 100%;
    margin: 0;
    margin-top: 105px;
  }
  
  .leftbar h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20%;
  }
  
  .leftbar ul {
    list-style-type: none;
    padding: 0;
  }
  
  .leftbar li {
    flex: 1;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
  }
  
  .leftbar li:hover {
    background-color: #f5f5f5;
  }
  </style>
  